package com.wwj.tem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wwj.tem.model.entity.SysRolePermission;
import com.wwj.tem.service.SysRolePermissionService;
import com.wwj.tem.mapper.SysRolePermissionMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author Home
* @description 针对表【sys_role_permission】的数据库操作Service实现
* @createDate 2024-07-28 18:54:19
*/
@Service
public class SysRolePermissionServiceImpl extends ServiceImpl<SysRolePermissionMapper, SysRolePermission>
    implements SysRolePermissionService{
	
	@Resource
	private SysRolePermissionMapper sysRolePermissionMapper;
	
	@Override
	public List<String> getPermissionCodesByRoleIds(List<Long> roleIds) {
		return sysRolePermissionMapper.selectRoleCodesByIds(roleIds);
	}
}




